package com.nervenets.template.controller.data.params;

import com.nervenets.general.exception.LogicException;
import com.nervenets.general.web.params.FormParams;
import com.nervenets.template.hibernate.domain.data.DataOfUser;
import com.nervenets.template.service.DataOfUserService;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Setter
@Getter
@NoArgsConstructor
@SuperBuilder
public class DataOfUserFormParams extends FormParams<DataOfUser, DataOfUserService> {
    @Override
    public DataOfUser validateAndBuild(DataOfUserService service, HttpServletRequest request, HttpServletResponse response) {
        throw new LogicException("不支持");
    }
}
